package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryMember;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.pojo.MemberOrder;
import com.itheima.pojo.User;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteUserById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    Integer[] findAge();

    Integer findMemderCountBeforeDate(String month);

    List<User> findAllUser();

    Integer findId(Integer id);

    void addMAUId(Map<String,Integer> map);

    User findByUid(Integer uid);

    User findMemberAndUser(Integer id);

    Integer findOrderId(Integer id);

    void deleteUM(Integer mid);

    Integer findMNum(Integer mid);

    List<String> getCheckgroupsByOid(Integer id);

    List<String> getCheckitemsByOid(Integer id);

    List<MemberOrder> getMemberOrders();

    void editMU(Map<String, Integer> map);

    List<QueryMember> findSetmealByIdAndDate(Map<String, String> map);

    QueryMember findMemberById(Map map);
}
